from django.conf.urls import include, url

from rest_framework import routers
from views import *
from api.api_demo_1 import *

router = routers.SimpleRouter()
router.register(r'ansible_host_api', Ansible_HostViewSet)
router.register(r'ansible_yml_register_api', Ansible_Yml_RegisterViewSet)
router.register(r'demo_api', DemoViewSet)

urlpatterns = [
    # Examples:
    # url(r'^$', 'ansible_demo.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

   
    url(r'',include(router.urls)),
]

urlpatterns += [
        url(r'^demo_static/', demo_static),
        url(r'^demo_ansible/', demo_ansible),
        url(r'^demo_ansible_with_vars/', demo_ansible_with_vars),
        url(r'^demo_server_deploy/', demo_server_deploy),
        url(r'^demo_server_create/', demo_server_create),
        url(r'^demo_server_add/', demo_server_add),
        url(r'^demo_server_delete/', demo_server_delete),
        url(r'^demo_server_modify/', demo_server_modify),
        url(r'^demo_read_log/', demo_read_log),
        url(r'^demo_upload/', demo_upload),
        url(r'^demo_config_center/', demo_config_center),
        url(r'^demo_operate_interface/', demo_operate_interface),

]